#ifndef _KP_HELPER_H_
#define _KP_HELPER_H_

#include "KPGLObject.h"
#include "KPMessage.h"

#include <pthread.h>

#define MAX_MUTEXES 1

class KPHelper
{
public:
	static void sendGLObjectToClient(int client, KPGLObject& obj);

	static void sendMessageToClient(int client, KPMessage& msg);

	static void sendFinishCaptureMessageToClient(int client);
	static void sendSuccessMessageToClient(int client);
	static void sendFailedMessageToClient(int client);

	static void closeSocket(int sockId);

	static void initMutexes();
	static void destroyMutexes();
	
	static void LockMutex0();
	static void UnlockMutex0();

	static pthread_mutex_t m_sMutexes[MAX_MUTEXES];
};

#endif
